<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Informix Functions (PDO_INFORMIX)</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ref.pdo-ibm.connection.html">« PDO_IBM DSN</a></li>
      <li style="float: right;"><a href="ref.pdo-informix.connection.html">PDO_INFORMIX DSN »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="pdo.drivers.html">PDO 驱动</a></li>
    <li>Informix Functions (PDO_INFORMIX)</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="ref.pdo-informix" class="reference">
 
  <h1 class="title">Informix Functions (PDO_INFORMIX)</h1>
  
  <div class="partintro">

   <div class="section" id="pdo-informix.intro">
    <h2 class="title">简介</h2>
    <p class="para">
     PDO_INFORMIX is a driver that implements the <a href="intro.pdo.html" class="link">PHP Data
     Objects (PDO)</a> interface to enable access from PHP to Informix databases.
    </p>
   </div>

   
   

<div class="section" id="ref.pdo-informix.installation">
 <h2 class="title">安装</h2>
 <p class="para">
  To build the PDO_INFORMIX extension, the Informix Client SDK 2.81 UC1 or
  higher must be installed on the same system as PHP. The Informix Client
  SDK is available from the <a href="http://www-306.ibm.com/software/data/informix/tools/csdk/" class="link external">&raquo;&nbsp;IBM Informix
  Support Site</a>.
 </p>
 <p class="para">
  PDO_INFORMIX is a <a href="https://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a> extension, so
  follow the instructions in <a href="install.pecl.html" class="xref">PECL 扩展库安装</a> to install the
  PDO_INFORMIX extension. Issue the <strong class="command">configure</strong> command
  to point to the location of your Informix Client SDK header files and
  libraries as follows:
  <div class="example-contents screen">
<div class="cdata"><pre>
   bash$ ./configure --with-pdo-informix=/path/to/SDK[,shared]
</pre></div>
  </div>
  The <strong class="command">configure</strong> command defaults to the value of the
  <code class="literal">INFORMIXDIR</code> environment variable.
 </p>
</div>




   <div class="section" id="ref.pdo-informix.features.cursors">
    <h2 class="title">Scrollable cursors</h2>
    <p class="para">
     PDO_INFORMIX supports scrollable cursors; however, they are not enabled
     by default. To enable scrollable cursor support, you must either set
     <strong class="userinput"><code>ENABLESCROLLABLECURSORS=1</code></strong> in the corresponding ODBC
     connection settings in <var class="filename">odbc.ini</var> or pass
     the <strong class="userinput"><code>EnableScrollableCursors=1</code></strong> clause in the DSN
     connection string.
    </p>
   </div>

  </div>

  

 <h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="ref.pdo-informix.connection.html">PDO_INFORMIX DSN</a> — Connecting to Informix databases</li></ul>
</div>
</div></div></body></html>